package com.xiangdao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {
    @RequestMapping(path="/")
    public String index(){
        return "index";
    }

    /**
     * 首页
     * @return
     */
    @RequestMapping(path="/home_page",method = RequestMethod.GET)
    public String first(){
        return "redirect:/home_page";
    }

    /**
     * 广场
     * @return
     */
    @RequestMapping(path = "/find",method = RequestMethod.GET)
    public String find(){
        return "redirect:/find";
    }

}
